﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RF.Master" AutoEventWireup="true" CodeBehind="AdjustTypeEntry.aspx.cs" Inherits="com.vs.RF.Web.inventory.AdjustTypeEntry" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="com.vs.DataAccess" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript">
    function valForm() {
        if (form1.cmbAdjType.value == "") {
            alert("必须选择调整类型");
            form1.cmbAdjType.focus();
            return false;
        }
        return true;
    }

    var iNumOfSubmit = 0;

    function btnOK_Click() {
        if (iNumOfSubmit > 0)
            return;
        if (valForm()) {
            iNumOfSubmit++;
            form1.submit();
        }
    }

    function btnCancel_Click() {
        history.go(-1);
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
<form id="form1" method="post" action="AdjustTypeEntryHandling.aspx">
<div>
    <table>
        <tr>
            <td>调整类型</td>
            <td>
                <select name="cmbAdjType">
            <%
                //todo: 根据用户权限列出调整类型
                string stValue = null;
                string stDesc = null;
                foreach (DataRow dr in this.dtAuth.Rows)
                {
                    stValue = DataManager.GetString(dr, "AUTH_ITEM");
                    stDesc = DataManager.GetString(dr, "AUTH_ITEM_DESC");
            %>
                    <option value="<%= stValue %>"><%= stDesc %></option>
            <%
                }
            %>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
    </table>
</div>
    <div id="footer">
        <input type="button" onclick="btnOK_Click()" value="确定"  class="greyRed"/>
        <input type="button" onclick="btnCancel_Click()" value="取消" class="greyRed" />
    </div> 
</form>
</asp:Content>
